#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#



num = "1"
print(num.isnumeric())  # True
print(num.isdecimal())  # True
print(num.isdigit())    # True

num = b"1"  # 二进制
# print(num.isnumeric())  # AttributeError: 'bytes' object has no attribute 'isnumeric'
# print(num.isdecimal())  # AttributeError: 'bytes' object has no attribute 'isnumeric'
print(num.isdigit())    # True

num = "IV"  # 罗马
print(num.isnumeric())  # False
print(num.isdecimal())  # False
print(num.isdigit())    # False

num = "四"
print(num.isnumeric())  # True
print(num.isdecimal())  # False
print(num.isdigit())    # False
